//
//  HWTweetCellViewModel.m
//  HomeWork
//
//  Created by apple on 2017/10/26.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "HWTweetCellViewModel.h"

@implementation HWTweetCellViewModel

- (void)initialize {
    
    [self commentViewModel];
}


- (RACSubject *)replyCmtSubject{
    if (!_replyCmtSubject) {
        _replyCmtSubject = [RACSubject subject];
    }
    return _replyCmtSubject;
}

//-------  评论部分
- (HWTweetCommentViewModel *)commentViewModel{
    if (!_commentViewModel) {
        _commentViewModel = [[HWTweetCommentViewModel alloc] init];
        _commentViewModel.replyCmtSubject = self.replyCmtSubject;
    }
    return _commentViewModel;
}

- (RACSubject *)commentSubject{
    if (!_commentSubject) {
        _commentSubject = [RACSubject subject];
    }
    return _commentSubject;
}


//-------图片
- (HWTweetImageViewModel *)imageViewModel{
    if (!_imageViewModel) {
        _imageViewModel = [[HWTweetImageViewModel alloc] init];
        _imageViewModel.imageClickSubject = self.imageClickSubject;
    }
    return _imageViewModel;
}

- (RACSubject *)imageClickSubject{
    if (!_imageClickSubject) {
        _imageClickSubject = [RACSubject subject];
    }
    return _imageClickSubject;
}

@end
